package com.naiterui.ehp.bs.doctor.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;

/**
 * @author luao
 * @date 2021/8/30 10:36 上午
 **/
@FeignClient(name = "adSupervise", url = "${ehp.domain.supervise}", configuration = FeignConfiguration.class)
@RequestMapping("/inner/supervise")
public interface SuperviseFeignClient {

    @PostMapping("/push/doctor/record")
    void pushDoctorRecord(@RequestParam("doctorId") Long doctorId);

    @PostMapping("/push/doctor")
    void pushDoctor(@RequestParam("doctorId") Long doctorId);
}
